import xmmsclient
from xmmsclient.collections import *
import os

xmms2 = xmmsclient.XMMS("prueba")
xmms2.connect(os.getenv("XMMS_PATH"))
res = xmms2.coll_query_infos(
    Intersection(
        Universe(), 
        Has(Universe(), field="artist"),
        Has(Universe(), field="album"), 
        Has(Universe(), field="title")), 
    ("artist", "album", "title",), 
    leng=0,
    order=None,
    groupby=["artist", "album", "title"])
res.wait()
print res.value()

